php create 404 error

57

php create 404 error -

<?php
http_response_code(404);
include('my_404.php'); // provide your own HTML for the error page
die();

php set 404 page -

ErrorDocument 400 /400.phpErrorDocument 401 /401.phpErrorDocument 403 /403.phpErrorDocument 404 /404.php #Don't re-add this lineErrorDocument 500 /500.php

Comments

Submit
0 Comments